import request from '@/utils/request'

// 查询出账名目列表
export function listBankOutcomeName(query) {
  return request({
    url: '/supplier/bankOutcomeName/list',
    method: 'get',
    params: query
  })
}

// 查询出账名目详细
export function getBankOutcomeName(id) {
  return request({
    url: '/supplier/bankOutcomeName/' + id,
    method: 'get'
  })
}

// 新增出账名目
export function addBankOutcomeName(data) {
  return request({
    url: '/supplier/bankOutcomeName',
    method: 'post',
    data: data
  })
}

// 修改出账名目
export function updateBankOutcomeName(data) {
  return request({
    url: '/supplier/bankOutcomeName',
    method: 'put',
    data: data
  })
}

// 删除出账名目
export function delBankOutcomeName(id) {
  return request({
    url: '/supplier/bankOutcomeName/' + id,
    method: 'delete'
  })
}

// 导出出账名目
export function exportBankOutcomeName(query) {
  return request({
    url: '/supplier/bankOutcomeName/export',
    method: 'get',
    params: query
  })
}